package com.sailfish.template.infra.feign.callback;


import com.sailfish.template.infra.exception.FeignClientException;

import com.sailfish.template.infra.feign.SailfishIamClient;
import com.sailfish.template.infra.feign.dto.OrganizationDTO;
import com.sailfish.template.infra.feign.dto.ProjectDTO;
import com.sailfish.template.infra.feign.dto.UserDTO;
import com.sailfish.template.infra.common.constants.ResponseEntity;
import com.sailfish.template.infra.feign.vo.IamProjectVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author XIAXINYU3
 * @date 2021/11/2
 */
@Component
public class SailfishIamClientFallback implements SailfishIamClient {

    @Override
    public ResponseEntity<IamProjectVO> createProjectWithin(Long organizationId, IamProjectVO iamProject) {
        throw new FeignClientException("common.feign.error");
    }

    @Override
    public ResponseEntity<ProjectDTO> queryIamProject(Long projectId) {
        throw new FeignClientException("common.feign.error");
    }

    @Override
    public ResponseEntity<OrganizationDTO> queryOrganizationById(Long organizationId) {
        throw new FeignClientException("common.feign.error");
    }

    @Override
    public ResponseEntity<List<UserDTO>> listUsersByIds(Long[] ids) {
        throw new FeignClientException("common.feign.error");
    }

    @Override
    public ResponseEntity<List<UserDTO>> list(Long id, Long userId, String param) {
        throw new FeignClientException("common.feign.error");
    }
}
